package com.mhc.suzuki.manager;

import com.mhc.suzuki.vo.CarModelVO;
import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.CarModelDO;
import com.mhc.suzuki.dal.query.CarModelQuery;

import java.util.List;
import java.util.Map;


/**
 * Manager for CarModel.
 */
public interface CarModelManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CarModelQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CarModelQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CarModelDO record);

    /**
     * insert selective.
     */
    long insertSelective(CarModelDO record);

    /**
     * select by query condition.
     */
    List<CarModelDO> selectByQuery(CarModelQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CarModelDO> selectByQueryWithPage(CarModelQuery query);

    /**
     * select by primary key.
     */
    CarModelDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CarModelDO record,  CarModelQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CarModelDO record, CarModelQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CarModelDO record);

    List<CarModelVO> selectListByQuery(Map<String, ?> paramMap);
}